AvigoBasic 1.5
List of Commands

[Operators]
>	Greater than
<	Smaller than
=	Equal
<>	Not equal
<=	Smaller or equal
>=	Greater or equal

[All]
asc	(a.)	A = a. A$	returns ascii value of string
beep	(b.)	b.		beeps
bkon		(break on)	break on
bkoff		(break off)	break off
buzzer	(bz.)	bz. 1,1		makes sound
chain	(ch.)	ch. "prog.b"	Execute other basic program
chr$	(ch$.)	A$=ch. A	makes string from ascii
circle	(ci.)	ci. X,Y,R,A	draw circle
clear	(cl.)	cl. A, A$	clear a variable
clreol	(cle.)	cle.		clear 'till end of line
cls	(c.)	c.		clear the screen
create  (cr.)   cr. "test"	create file
date$	(da$.)	D$=da.		return the date
dint!	(di!.)			Returns part before '.' of float value
else	(el.)	el. B=A
end	(e.)	e.		Ends the program
eof		a = eof		Detects End of file
fabs! 	(fa!.)  		Returns absolute value of a float
fcircle	(fc.)	ci. idem	Fill circle
find	(fi.)	fi. "test"	Verify if file exists (if returns >0 file exists)
font	(fo.)			Toggles from bold to normal
for	(f.)	f. I=0 TO 5
frect	(fr.)	fr. idem	Fill rectangle
gosub	(go.)	go. 2500	Call a routine (gosub 100 or gosub i)
goto	(g.)	g. 160		Jump (goto 100 or goto i)
hex$	  	A$=hex$ 125	Returns hexa string of integer
if		if A<B then A=B	
inpen	(ip.)	ip.		Waits a pen press
input	(in.)	in. "name";A$	Input data
lcopy	(lc.)	0 or 1		Copy LCD screen
left$	(le$.)	B$=le. A$, 5	returns left part of string
len		A=len A$	return length of string
let	(le.)	let a = 2	assign values to variables
line	(li.)	li. X,Y,W,H,A	draw a line
locate	(l.)	l. 10[,10]	set the position for print
message	(me.)	A=me. A$, B	open messagebox
mid$	(mi$.)	B$=mi. A$, 5, 2	returns middle part of string
next	(n.)
open	(op.)	op. "test"	open file
pause	(pa.)	pa. "Press..."	Show message and wait for click
pmode	(pm.)	pm. [0 or 1]	Set text drawing mode
posx	(px.)	X = px.		Returns xpos of last click
posy	(py.)	Y = py.		Returns ypos of last click
power	(pw.)	0 or 1		Set autopower off
preset	(pr.)	pr. X,Y		Clear screen pixel
print	(p.)	p. "Hello"; A, A$ 
pset	(ps.)	ps. X,Y		Set screen pixel
rand	(ra.)	A= ra. 50	return random value between 0 and MAX
random	(rd.)	rd.		Initialize random number generator
read	(rea.)  rea. a$		read from file
rect	(re.)	re. idem	draw rectangle
rem	(rm.)	rm. a remark	remarks
return	(r.)	r.		return from gosub
right$	(ri$.)	B$=ri. A$, 5	returns right part of string
sqrt!	(sq!.)			Square root of the value
str$	(st$.)	A$=s. A		Convert number to string
then	(th.)
time$	(ti$.)	T$=ti.		Return time
title	(ti.)	ti. "My app"	Set window title
tron				Trace on
troff				Trace off
val	(v.)	A=v. A$		Convert string to integer
val!	(v!)	a! = v!. a$	Convert string to float
ver$	(v$.)	p. v$.		(Return Avigo version)
write	(wr.)	wr. a$		write variable to file

----------------------------------------

[Cycle/Conditional/Jump]
else	(el.)	el. B=A
for	(f.)	f. I=0 TO 5
gosub	(go.)	go. 2500	Call a routine (gosub 100 or gosub i)
goto	(g.)	g. 160		Jump (goto 100 or goto i)
if		if A<B then A=B	
next	(n.)
end	(e.)	e.		Ends the program
return	(r.)	r.		return from gosub
then	(th.)

[Debug]
bkon		(break on)	break on
bkoff		(break off)	break off
pause	(pa.)	pa. "Press..."	Show message and wait for click
tron				Trace on
troff				Trace off

[Display]
clreol	(cle.)	cle.		clear 'till end of line
cls	(c.)	c.		clear the screen
font	(fo.)			Toggles from bold to normal
lcopy	(lc.)	0 or 1		Copy LCD screen
locate	(l.)	l. 10[,10]	set the position for print
message	(me.)	A=me. A$, B	open messagebox
pmode	(pm.)	pm. [0 or 1]	Set text drawing mode
print	(p.)	p. "Hello"; A, A$ 
title	(ti.)	ti. "My app"	Set window title

[File Commands]
create  (cr.)   cr. "test"	create file
find	(fi.)	fi. "test"	Verify if file exists (>0 Exists, =0 Not Exists)
open	(op.)	op. "test"	open file
read	(rea.)  rea. a$		read from file
write	(wr.)	wr. a$		write variable to file
close   (clo.)  clo.		close open file
eof		a = eof		Detects endof file

[Graphics]
circle	(ci.)	ci. X,Y,R,A	draw circle
fcircle	(fc.)	ci. idem	Fill circle
frect	(fr.)	fr. idem	Fill rectangle
line	(li.)	li. X,Y,W,H,A	draw a line
preset	(pr.)	pr. X,Y		Clear screen pixel
pset	(ps.)	ps. X,Y		Set screen pixel
rect	(re.)	re. idem	draw rectangle

[input]
inpen	(ip.)	ip.		Waits a pen press
input	(in.)	in. "name";A$	Input data
posx	(px.)	X = px.		Returns xpos of last click
posy	(py.)	Y = py.		Returns ypos of last click

[Misc]
chain	(ch.)	ch. "prog.b"	Execute other basic program
date$	(da$.)	D$=da.		return the date
power	(pw.)	0 or 1		Set autopower off
rem	(rm.)	rm. a remark	remarks
time$	(ti$.)	T$=ti.		Return time
ver$	(v$.)	p. v$.		(Return Avigo version)

[Numeric]
asc	(a.)	A = a. A$	returns ascii value of string
dint!	(di!.)			Returns part before '.' of float value
fabs! 	(fa!.)  		Returns absolute value of a float
len		A=len A$	return length of string
rand	(ra.)	A= ra. 50	return random value between 0 and MAX
random	(rd.)	rd.		Initialize random number generator
sqrt!	(sq!.)			Square root of the value
val	(v.)	A=v. A$		Convert string to integer
val!	(v!)	a! = v!. a$	Convert string to float

[String]
chr$	(ch$.)	A$=ch. A	makes string from ascii
hex$	  	A$=hex$ 125	Returns hexa string of integer
left$	(le$.)	B$=le. A$, 5	returns left part of string
mid$	(mi$.)	B$=mi. A$, 5, 2	returns middle part of string
right$	(ri$.)	B$=ri. A$, 5	returns right part of string
str$	(st$.)	A$=s. A		Convert number to string

[Sound]
beep	(b.)	b.		beeps
buzzer	(bz.)	bz. 1,1		makes sound

[Variables]
clear	(cl.)	cl. A, A$	clear a variable
let	(le.)	let a = 2	assign values to variables

